xen: sched: improve robustness (and rename) DOM2OP()
authorDario Faggioli <dario.faggioli@citrix.com>
Fri, 7 Apr 2017 12:28:01 +0000 (14:28 +0200)
committerGeorge Dunlap <george.dunlap@citrix.com>
Fri, 7 Apr 2017 14:53:14 +0000 (15:53 +0100)
commit64c9b1ed69d5d62516869d428c5508fba8789636
tree46c1f41fb68c10638ff1b735f4ffdb6eb38bbb28
parent6a2c6a68423475cd89a8cc9978554880e5a21b7d
xen: sched: improve robustness (and rename) DOM2OP()

Clarify and enforce (with ASSERTs) when the function
is called on the idle domain, and explain in comments
what it means and when it is ok to do so.

While there, change the name of the function to a more
self-explanatory one, and do the same to VCPU2OP.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
xen/common/schedule.c